package org.cfx.gift.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Param;
import org.cfx.gift.domain.Employee;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cfx
 * @since 2023-10-31
 */
@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    // 当mybatis-plus发现你的第一个参数是page对象时，底层会自动帮你分页
    List<Employee> queryPage(Page<Employee> page, @Param("keyword") String keyword);
}
